﻿using ModernShopping.AppCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ModernShopping
{
    public partial class ProductDescription : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["ProductCode"] != null)
                {
                    int ProductCode = int.Parse(Request.QueryString["ProductCode"]);
                    Product p = DbProduct.GetByCode(ProductCode);
                    Response.Write(p.Description);
                }
            }
        }
    }
}